package Modelo;

public class PsNames extends BaseModelo
{
  private static String tableName = "PS_NAMES";
  private static EstructuraFila estructuraFila = new EstructuraFila();

  public static void setEstructuraFila(EstructuraFila aEstructuraFila)
  {
    estructuraFila = aEstructuraFila;
  }

  public static String getTableName()
  {
    return tableName;
  }

  public static EstructuraFila getEstructuraFila()
  {
    return estructuraFila;
  }

  public PsNames(String emplid)
  {
    this.datos = new Fila();

    setEmplid(emplid);
    setName_type("PRF");
    setEffdt("SYSDATE");
    setCountry_nm_format("COL");
    setName(" ");
    setName_initials(" ");
    setName_prefix(" ");
    setName_suffix(" ");
    setName_royal_prefix(" ");
    setName_royal_suffix(" ");
    setName_title(" ");
    setLast_name_srch(" ");
    setFirst_name_srch(" ");
    setLast_name(" ");
    setFirst_name(" ");
    setMiddle_name(" ");
    setSecond_last_name(" ");
    setSecond_last_srch(" ");
    setName_ac(" ");
    setPref_first_name(" ");
  }

  public void setEmplid(String emplid) {
    asignarCampo("EMPLID", emplid);
  }

  public void setName_type(String name_type) {
    asignarCampo("NAME_TYPE", name_type);
  }

  public void setEffdt(String effdt) {
    asignarCampo("EFFDT", "TO_CHAR(" + effdt + " ,'DD-MON-RRRR')");
  }

  public void setCountry_nm_format(String country_nm_format) {
    asignarCampo("COUNTRY_NM_FORMAT", country_nm_format);
  }

  public void setName(String name) {
    asignarCampo("NAME", name);
  }

  public void setName_initials(String name_initials) {
    asignarCampo("NAME_INITIALS", name_initials);
  }

  public void setName_prefix(String name_prefix) {
    asignarCampo("NAME_PREFIX", name_prefix);
  }

  public void setName_suffix(String name_suffix) {
    asignarCampo("NAME_SUFFIX", name_suffix);
  }

  public void setName_royal_prefix(String name_royal_prefix) {
    asignarCampo("NAME_ROYAL_PREFIX", name_royal_prefix);
  }

  public void setName_royal_suffix(String name_royal_suffix) {
    asignarCampo("NAME_ROYAL_SUFFIX", name_royal_suffix);
  }

  public void setName_title(String name_title) {
    asignarCampo("NAME_TITLE", name_title);
  }

  public void setLast_name_srch(String last_name_srch) {
    asignarCampo("LAST_NAME_SRCH", last_name_srch);
  }

  public void setFirst_name_srch(String first_name_srch) {
    asignarCampo("FIRST_NAME_SRCH", first_name_srch);
  }

  public void setLast_name(String last_name) {
    asignarCampo("LAST_NAME", last_name);
  }

  public void setFirst_name(String first_name) {
    asignarCampo("FIRST_NAME", first_name);
  }

  public void setMiddle_name(String middle_name) {
    asignarCampo("MIDDLE_NAME", middle_name);
  }

  public void setSecond_last_name(String second_last_name) {
    asignarCampo("SECOND_LAST_NAME", second_last_name);
  }

  public void setSecond_last_srch(String second_last_srch) {
    asignarCampo("SECOND_LAST_SRCH", second_last_srch);
  }

  public void setName_ac(String name_ac) {
    asignarCampo("NAME_AC", name_ac);
  }

  public void setPref_first_name(String pref_first_name) {
    asignarCampo("PREF_FIRST_NAME", pref_first_name);
  }

  public AtributoValor getEmplid() {
    return obtenerAtributoValor("EMPLID");
  }

  public AtributoValor getName_type() {
    return obtenerAtributoValor("NAME_TYPE");
  }

  public AtributoValor getEffdt() {
    return obtenerAtributoValor("EFFDT");
  }

  public AtributoValor getCountry_nm_format() {
    return obtenerAtributoValor("COUNTRY_NM_FORMAT");
  }

  public AtributoValor getName() {
    return obtenerAtributoValor("NAME");
  }

  public AtributoValor getName_initials() {
    return obtenerAtributoValor("NAME_INITIALS");
  }

  public AtributoValor getName_prefix() {
    return obtenerAtributoValor("NAME_PREFIX");
  }

  public AtributoValor getName_suffix() {
    return obtenerAtributoValor("NAME_SUFFIX");
  }

  public AtributoValor getName_royal_prefix() {
    return obtenerAtributoValor("NAME_ROYAL_PREFIX");
  }

  public AtributoValor getName_royal_suffix() {
    return obtenerAtributoValor("NAME_ROYAL_SUFFIX");
  }

  public AtributoValor getName_title() {
    return obtenerAtributoValor("NAME_TITLE");
  }

  public AtributoValor getLast_name_srch() {
    return obtenerAtributoValor("LAST_NAME_SRCH");
  }

  public AtributoValor getFirst_name_srch() {
    return obtenerAtributoValor("FIRST_NAME_SRCH");
  }

  public AtributoValor getLast_name() {
    return obtenerAtributoValor("LAST_NAME");
  }

  public AtributoValor getFirst_name() {
    return obtenerAtributoValor("FIRST_NAME");
  }

  public AtributoValor getMiddle_name() {
    return obtenerAtributoValor("MIDDLE_NAME");
  }

  public AtributoValor getSecond_last_name() {
    return obtenerAtributoValor("SECOND_LAST_NAME");
  }

  public AtributoValor getSecond_last_srch() {
    return obtenerAtributoValor("SECOND_LAST_SRCH");
  }

  public AtributoValor getName_ac() {
    return obtenerAtributoValor("NAME_AC");
  }

  public AtributoValor getPref_first_name() {
    return obtenerAtributoValor("PREF_FIRST_NAME");
  }

  static
  {
    estructuraFila.adicionar("EMPLID", "S", true, "getEmplid");
    estructuraFila.adicionar("NAME_TYPE", "S", true, "getName_type");
    estructuraFila.adicionar("EFFDT", "D", true, "getEffdt");
    estructuraFila.adicionar("COUNTRY_NM_FORMAT", "S", true, "getCountry_nm_format");
    estructuraFila.adicionar("NAME", "S", true, "getName");
    estructuraFila.adicionar("NAME_INITIALS", "S", true, "getName_initials");
    estructuraFila.adicionar("NAME_PREFIX", "S", true, "getName_prefix");
    estructuraFila.adicionar("NAME_SUFFIX", "S", true, "getName_suffix");
    estructuraFila.adicionar("NAME_ROYAL_PREFIX", "S", true, "getName_royal_prefix");
    estructuraFila.adicionar("NAME_ROYAL_SUFFIX", "S", true, "getName_royal_suffix");
    estructuraFila.adicionar("NAME_TITLE", "S", true, "getName_title");
    estructuraFila.adicionar("LAST_NAME_SRCH", "S", true, "getLast_name_srch");
    estructuraFila.adicionar("FIRST_NAME_SRCH", "S", true, "getFirst_name_srch");
    estructuraFila.adicionar("LAST_NAME", "S", true, "getLast_name");
    estructuraFila.adicionar("FIRST_NAME", "S", true, "getFirst_name");
    estructuraFila.adicionar("MIDDLE_NAME", "S", true, "getMiddle_name");
    estructuraFila.adicionar("SECOND_LAST_NAME", "S", true, "getSecond_last_name");
    estructuraFila.adicionar("SECOND_LAST_SRCH", "S", true, "getSecond_last_srch");
    estructuraFila.adicionar("NAME_AC", "S", true, "getName_ac");
    estructuraFila.adicionar("PREF_FIRST_NAME", "S", true, "getPref_first_name");
  }
}